-
Notifications
You must be signed in to change notification settings - Fork 42
fix: adjust input field placeholder text color #562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1. Changed placeholder text opacity from 0.7 to 0.4 in FlowStyle.qml for better visual hierarchy 2. Moved placeholderText palette definition from FlowStyle to searchEdit section for proper scoping 3. Added placeholderTextPalette property binding in SearchEdit.qml to use the new color settings 4. This adjustment improves readability and visual distinction between placeholder text and user input Log: Adjusted placeholder text color in search input fields for better visual clarity Influence: 1. Test search input fields to verify placeholder text appears with reduced opacity (0.4) 2. Verify placeholder text is visible but clearly distinguishable from user-entered text 3. Check consistency across light and dark themes 4. Test in various input states (focused, unfocused, with text, without text) 5. Ensure accessibility requirements are still met with the new color contrast fix: 调整输入框占位符文本颜色 1. 将 FlowStyle.qml 中的占位符文本不透明度从 0.7 调整为 0.4,以改善视觉 层次 2. 将 placeholderText 调色板定义从 FlowStyle 移动到 searchEdit 部分,实 现正确的作用域 3. 在 SearchEdit.qml 中添加 placeholderTextPalette 属性绑定以使用新的颜 色设置 4. 此调整提高了可读性,并改善了占位符文本与用户输入之间的视觉区分 Log: 调整搜索输入框占位符文本颜色,提升视觉清晰度 Influence: 1. 测试搜索输入框,验证占位符文本以降低的不透明度(0.4)显示 2. 验证占位符文本可见但与用户输入文本有明显区分 3. 检查浅色和深色主题下的一致性 4. 测试各种输入状态(聚焦、未聚焦、有文本、无文本) 5. 确保新的颜色对比度仍满足无障碍访问要求 PMS: BUG-338425
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry @18202781743, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
deepin pr auto review这段代码的 diff 主要涉及两个 QML 文件: 以下是对这段 diff 的详细审查意见,包括语法逻辑、代码质量、代码性能和代码安全方面的分析: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
总结与改进建议这段代码的修改逻辑清晰,目的是为了优化搜索框占位符的视觉层次感。代码本身没有语法错误或性能隐患。 改进建议:
示例代码优化(针对 FlowStyle.qml): // 建议在 FlowStyle 顶部定义通用透明度常量
readonly property real placeholderOpacity: 0.4
// 或者如果 searchInput 确实需要不同的透明度
readonly property real inputPlaceholderOpacity: 0.7
QtObject {
id: searchEdit
// ...
property D.Palette placeholderText: D.Palette {
normal: Qt.rgba(0, 0, 0, placeholderOpacity)
normalDark: Qt.rgba(1, 1, 1, placeholderOpacity)
}
} |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
better visual hierarchy
section for proper scoping
use the new color settings
placeholder text and user input
Log: Adjusted placeholder text color in search input fields for better
visual clarity
Influence:
reduced opacity (0.4)
user-entered text
text)
contrast
fix: 调整输入框占位符文本颜色
层次
现正确的作用域
色设置
Log: 调整搜索输入框占位符文本颜色,提升视觉清晰度
Influence:
PMS: BUG-338425